package clientClasses;

import java.util.ArrayList;

import com.google.gson.JsonObject;

import clientClasses.products.Product;

public class Category {
	private int id;
	private String name;
	ArrayList<Product> products;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JsonObject toJson(){
		JsonObject obj = new JsonObject();
		obj.addProperty("id", id);
		obj.addProperty("name", name);
		return obj;
	}
}
